<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单数据页面</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/themes/black/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/themes/color.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
var url;
function newOrder() {
	$('#dlg').dialog('open').dialog('center')
			.dialog('setTitle', '输入订单');
	$('#fm').form('clear');
	url = 'add';
}
</script>
<body>
	<table id="order" title="订单信息" class="easyui-datagrid"
		style="width: 100%"
		url="${pageContext.request.contextPath}/show/show_showMsg.do"
		toolbar="#toolbar" fit="true"
		pagination="true" rownumbers="true" fitColumns="true">

		<thead>
			<tr>
				<th data-options="field:'number',width:100">订单编号</th>
				<th data-options="field:'startPlace',width:100">收寄地</th>
				<th data-options="field:'endPlace',width:100">配送地</th>
				<th data-options="field:'senderName',width:100">寄件人</th>
				<th data-options="field:'sendTime',width:100">收寄时间</th>
				<th data-options="field:'receiverName',width:100">收件人</th>
				<th data-options="field:'senderPhone',width:100">寄件人电话</th>
			</tr>
		</thead>
	</table>
	<div id="toolbar">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			iconCls="icon-add" plain="true" onclick="newOrder()">输入订单</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			iconCls="icon-edit" plain="true" onclick="editOrder()">修改订单</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			iconCls="icon-remove" plain="true" onclick="destroyUser()">删除订单</a>
	</div>
<div id="dlg" class="easyui-dialog"
		style="width: 400px; height: 280px; padding: 10px 20px" closed="true"
		buttons="#dlg-buttons">
		<div class="ftitle">学生信息</div>
		<form id="fm" method="post" novalidate>
			<div class="fitem">   
        		<label for="number">订单编号:</label>   
       			 <input class="easyui-textbox" type="text" name="number" id="number" data-options="required:true" />   
    		</div>   
    		<div class="fitem">   
        		<label for="startPlace">收&nbsp;寄&nbsp;地:</label>   
        		<select id="cc" class="easyui-combobox" name="startPlace" style="width:200px;">   
    				<option value="aa">请选择</option>   
    				<c:forEach items="${pm.list}" var="point">
               			<option value="${p.id}">${p.className}</option>
            		</c:forEach>  
				</select> 
			</div>   
     		<div class="fitem">   
        		<label for="sendTime">收寄日期:</label>   
      			<input id="dd" type="text" class="easyui-datebox" required="required"></input> 

			</div>  
			<div class="fitem">   
        		<label for="endPlace">配&nbsp;送&nbsp;地:</label>   
        		<select id="cc" class="easyui-combobox" name="endPlace"style="width:200px;">   
    				<option value="aa">aitem1</option>   
    		   
				</select> 
			</div>
			<div class="fitem">   
       			 <label for="orderType">订单类别:</label>   
        		 <select id="cc" class="easyui-combobox" name="orderType" style="width:200px;">   
    				<option value="aa">aitem1</option>   
    		     </select> 
			</div>   
		</form>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton c6"
			iconCls="icon-ok" onclick="saveUser()" style="width: 90px">确定</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')"
			style="width: 90px">取消</a>
	</div>
</body>
</html>